<?php $this->load->view('includes/header');
	echo '<span class="error">' . validation_errors() . '</span>';
	if (isset($message))
		echo '<div class="alert alert-info">' . $message . '</div><br>';
	$attributes = array('class' => 'form-horizontal' , 'id' => 'loginfrm');
	
?>
	<div class="row">
	 <div class="span5">
		 <?php echo form_open($action, $attributes); ?>
			<div class="control-group logincontainer">
				<label class="control-label" for="username">Email</label>
				<div class="controls">
				  <input type="text" id="username" placeholder="Email" name="username" value="<?php echo set_value('username'); ?>">
				</div>
			</div>
		<div class="control-group">
			<label class="control-label" for="password">Password</label>
			<div class="controls">
			  <input type="password" id="password" placeholder="Password" name="password" value="<?php echo set_value('password'); ?>">
			</div>
		</div>
		<div class="control-group">
			<div class="controls">
			 <input type="checkbox"> Remember me
			 &nbsp;&nbsp;&nbsp;<button type="submit" class="btn btn-primary">Submit</button>
			</div>
		</div>
		<div class="control-group">
			<div class="controls">
				Forgot password? <a href="<?php echo base_url('admin/profile/reset'); ?>">Click here to reset</a>
			</div>
		</div>
		<div class="control-group">
			<div class="controls">
				<h4>Not a Member Yet? </h4>
				It's free and only takes a second.<a href="<?php echo base_url('/registration'); ?>">Register Here</a>
			</div>
		</div>
	 
	 </div>
	<div class="span3 offset2">
	<img src="<?php echo site_url('/assets/img/mm-adv.png'); ?>" class="img-polaroid">
	</div>
	</div>
	
</form>
		
<?php $this->load->view('includes/footer'); ?>

   
